﻿using System.Windows;

namespace TeBigScreenWpf.Attach
{
    public class SeriesPointAttach
    {
        public static void SetEllipseMargin(DependencyObject element, double value)
        {
            element.SetValue(EllipseMarginProperty, value);
        }

        public static double GetEllipseMargin(DependencyObject element)
        {
            return (double)element.GetValue(EllipseMarginProperty);
        }

        // Using a DependencyProperty as the backing store for Margin.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty EllipseMarginProperty =
            DependencyProperty.RegisterAttached("EllipseMargin", typeof(double), typeof(SeriesPointAttach),
                new PropertyMetadata(0d));
    }
}